<template>
  <div class="main-content">
    <h3>部门列表上传</h3>
    <el-form>
      <a href="static/example.xlsx" download="01.xlsx"><el-button icon="el-icon-download" type="primary">模板下载</el-button></a>

      <el-form-item>
        <el-upload
          class="upload-demo"
          drag
          action="http://localhost:9001/xiyun/service/department/uploadexcel"
          multiple
          style="margin-top: 36px">
          <i class="el-icon-upload"></i>
          <div class="el-upload__text">将文件拖到此处，或<em>点击上传</em></div>
          <div class="el-upload__tip" slot="tip">只能上传.xlsx文件，请勿上传其他类型文件</div>
        </el-upload>
      </el-form-item>
    </el-form>
  </div>
</template>

<script>
  export default {
    name: "DeptUpload"
  }
</script>

<style scoped>
  .main-content{
    padding: 0 36px;
  }
</style>
